
**********
*Table 5: Difference-in-difference estimates of effect of Venezuelan refugee crisis post-2016 
**********

***Column 1 Pacaraima - Non BR-174
clear all
set more off
cap log close
cd ""
use , replace 

drop post 
gen post = 0
replace post = 1 if year> 2015

keep treat1 treat3
rename treat1 pacaraima 

global x "life_expect illit_25 school gini poverty water_sewer  garbage electric female_pop agriculture fish construction mine def rain temp cattle rural"

reg malaria_vene $x post##pacaraima i.munic_code i.year, cl(munic_code)
outreg2 using table5.1.1, replace stats(coef se) asterisk(coeff)

reg malaria_bra $x post##pacaraima i.munic_code i.year, cl(munic_code)
outreg2 using table5.1.2, replace stats(coef se) asterisk(coeff)

***Column 2 BR-174 - Non BR-174
clear all
set more off
cap log close
cd ""
use , replace 

drop post 
gen post = 0
replace post = 1 if year> 2015

keep treat2 treat3
rename treat2 BR 

global x "life_expect illit_25 school gini poverty water_sewer  garbage electric female_pop agriculture fish construction mine def rain temp cattle rural"

reg malaria_vene $x post##BR i.munic_code i.year, cl(munic_code)
outreg2 using table5.2.1, replace stats(coef se) asterisk(coeff)

reg malaria_bra $x post##BR i.munic_code i.year, cl(munic_code)
outreg2 using table5.2.2, replace stats(coef se) asterisk(coeff)

